package cn.com.zcode.auth.model;

import java.util.Set;

import cn.com.zcode.core.model.BaseModelSupport;
import cn.com.zcode.user.model.User;

public class UserRole extends BaseModelSupport {
	private static final long serialVersionUID = 1L;
	private String roleName;
	private String comment;
	private Set<Resource> resources;
	private Set<User> users;
	
	public UserRole() {
		super();
	}
	
	public UserRole(String roleName, String comment) {
		super();
		this.roleName = roleName;
		this.comment = comment;
	}

	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public Set<Resource> getResources() {
		return resources;
	}
	public void setResources(Set<Resource> resources) {
		this.resources = resources;
	}
	public Set<User> getUsers() {
		return users;
	}
	public void setUsers(Set<User> users) {
		this.users = users;
	}

}
